package com.guigu.gulicommon.constant.enumes.res;

import com.guigu.gulicommon.api.BaseResCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 新增响应码枚举
 */
@Getter
@AllArgsConstructor
public enum AddResCode implements BaseResCode {
    //----------------------------------------------------------------------------------成功
    INSERT_MEMBER_SUCCESS(200, "新增会员成功"),
    INSERT_ORDER_ITEMS_SUCCESS(200, "新增订单项成功"),
    INSERT_MQ_MESSAGE_SUCCESS(200, "新增MQ消息成功"),
    INSERT_SPU_SUCCESS(200, "新增商品SPU成功"),
    INSERT_PRODUCT_TO_ES_SUCCESS(200, "新增商品到ES成功"),
    INSERT_PRODUCT_TO_CART_SUCCESS(200, "新增商品到购物车成功"),
    //----------------------------------------------------------------------------------失败
    INSERT_MEMBER_FAIL_DATA_IS_EXIST(403, "会员已存在,新增失败"),
    INSERT_FAIL_DATA_IS_EXIST(403, "数据已存在，新增失败"),
    ;
    private final Integer code;
    private final String msg;
}
